home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / eiffel / smalleif.97 / se.t / SmallEiffel / man / finder.hlp < prev    next >
Encoding:
Text File  |  1996-05-02  |  2.0 KB  |  50 lines

  1. finder <Class>
  2.  
  3. Command `finder' tells you which file is loaded when searching
  4. for an Eiffel <Class>.
  5. When an Eiffel file is found, `finder' prints the full path name.
  6. The exit status is set to a good value.
  7.  
  8. To see the loading path used by SmallEiffel, you can for example
  9. type the `finder' command using a bad (inexistant) class name.
  10.  
  11. Without argument, `finder' command prints this help.
  12.  
  13. The algorithm used by SmallEiffel to search for an Eiffel
  14. source file has two major steps.
  15.  
  16. 1- First Step - SmallEiffel looks all along the loading path using
  17. <class> name in lower case as tail. If needed, the Eiffel 
  18. suffix (".e") is added automatically. SmallEiffel only looks for 
  19. suffixed files on the disk. Only the first file encountered 
  20. according to the order of the path is taken in account.
  21. File is always supposed to have the same name as the inside 
  22. class definition. 
  23.  
  24. 2 - Second Step - : is done only when first step has failed to find 
  25. a file. SmallEiffel tries to search for files "rename.se" in all 
  26. directories of the path.
  27. A file "rename.se" allows the user to put in file "foo" the class
  28. "bar" for example.
  29. Such renaming facilities has been added especially for DOS (file
  30. manes is limited to 8 characters).
  31. Each line of a "rename.se" file is a renaming directive containing
  32. two names, first the full name and then the short name to use in the
  33. directory where the "rename.se" file is.
  34. File "SmallEiffel/misc/rename.se" is an example of a "rename.se" file
  35. to put in SmallEiffel/lib_std/ for DOS.
  36.  
  37. Thus, knowing the algorithm of SmallEiffel to find a class file, it is
  38. better not to use the renaming facilities to speed up class loading. 
  39.  
  40. -- Changing the default loading path --
  41. To change the default loading path, you need to add a special 
  42. file which name is "loadpath.se" in the directoy you type a  
  43. command of SmallEiffel (`compile', `finder', `pretty', ...).
  44. Each line of the file "loadpath.se" must be an existing 
  45. directory path.
  46. All directories of file "loadpath.se" are prepend to the default 
  47. loading path.
  48.  
  49.  
  50.